先前分享的文章:[Day02 - Nagios] Install Nagios on RHEL platform已介紹Nagios這套有名的監控系統,現在將再介紹一套以Nagios為Base的監控系統:OMD,並分享於RHEL平台建置OMD Monitoring System
[OMD overview]
OMD(Open Monitoring Distribution),實現以Nagios為Base,並使用全新的概念來建置、維護及更新的監控系統,優勢如下:
・Multiple instances per host
・Separate omd user per instance
・Script based tarball building
・Simple creation of new sites
・Supporting different omd version at the same time
・Platform independent paths
・Speed optimizations
詳細說明可參閱OMD官方網站
[Lab Information]
本文測試環境已事先部署yum server,主機資訊如下:
OS: Rat Hat Enterprise Linux 6.1 64 bit
Linux Kernel: 2.6.32
CPU Type: Intel Xeon CPU E5-2620 2.00GHz
CPU Core: 8
Memory: 16GB
OS root password: 12345678
OMD Monitoring System version: omd-1.00-rh61-30
OMD administrator user: omdadmin
OMD omdadmin password: omd
[Download OMD Package]
測試環境所安裝版本為 omd-1.00-rh61-30,點此進入下載頁面,下載檔案:omd-1.00-rh61-30.x86_64.rpm即可,如下圖紅框處:
[Install on Linux]
安裝OMD Monitoring System前置作業,請先確認Linux Server是否已經存在下列套件:
・perl-Crypt-DES
・perl-Net-SNMP
・fping
・libmcrypt
・mod_fcgid
・php-mbstring
・xorg-x11-server-Xvfb
・ann-libs
・zlib
・graphviz
若無安裝上述套件,請透過root帳號使用yum or rpm command進行安裝
graphviz非內建套件,請先至http://www.graphviz.org網站下載Yum Repository檔案: graphviz-rhel.repo,並放置於目錄:/etc/yum.repos.d,後續即可使用yum command進行安裝
yum install perl-Crypt-DES perl-Net-SNMP fping libmcrypt mod_fcgid php-mbstring xorg-x11-server-Xvfb ann-libs zlib graphviz -y
上述套件安裝完畢後,執行下列步驟即可完成OMD Monitoring System安裝作業
yum install omd-1.00-rh61-30.x86_64.rpm -y
[Configure and Use OMD Monitoring System]
要使用OMD Monitoring System只須執行下列步驟:
Create new monitoring instance:
omd create monitor
執行結果如下圖示:
2. Start daemon:
omd start monitor
[Reference]
OMD - The Open Monitoring Distribution